set gSpritePropTypes to [#type: [#script: "the type of sprite", #DeFault: 1], #backcolor: [#script: "the Backcolor of sprite", #DeFault: 0], #forecolor: [#script: "the ForeColor of sprite", #DeFault: 255], #trails: [#script: "the trails of sprite", #DeFault: 0], #stretch: [#script: "the stretch of sprite", #DeFault: 0], #ink: [#script: "the ink of sprite", #DeFault: 36], #blend: [#script: "the blend of sprite", #DeFault: 100], #rect: [#script: "the rect of sprite", #DeFault: rect(0, 0, 0, 0)], #visible: [#script: "the visible of sprite", #DeFault: 1]]
sort(gSpritePropTypes)
end
on initdefaultQTProp
set QTSprite to sQTCharSprite
set QTcast to cNUllCharmovie
set gQTproplist to [#center: [#script: "the center of cast", #CastSprite: QTSprite, #DeFault: 0], #controller: [#script: "the controller of cast", #CastSprite: QTcast, #DeFault: 0], #crop: [#script: "the crop of cast", #CastSprite: QTcast, #DeFault: 0], #directToStage: [#script: "the directToStage of cast", #CastSprite: QTcast, #DeFault: 1], #loop: [#script: "the loop of cast", #CastSprite: QTcast, #DeFault: 0], #pausedAtStart: [#script: "the pausedAtStart of cast", #CastSprite: QTcast, #DeFault: 0], #volume: [#script: "the volume of sprite", #CastSprite: QTSprite, #DeFault: 255], #movieTime: [#script: "the movieTime of sprite", #CastSprite: QTSprite, #DeFault: 0], #movieRate: [#script: "the movieRate of sprite", #CastSprite: QTSprite, #DeFault: 0], #preLoad: [#script: "the preLoad of cast", #CastSprite: QTcast, #DeFault: 0], #sound: [#script: "the sound of cast", #CastSprite: QTcast, #DeFault: 1], #video: [#script: "the video of cast", #CastSprite: QTcast, #DeFault: 1], #startTime: [#script: "the startTime of sprite", #CastSprite: QTSprite, #DeFault: 0], #stopTime: [#script: "the stopTime of sprite", #CastSprite: QTSprite, #DeFault: 0]]
set IOerrors to [33: "File directory full", 34: "Volume full", 35: "Volume not found", 36: "I/O Error", 37: "Bad file name", 38: "File not open", 42: "Too many files open", 43: "File not found", 48: "Can not write file over an existing folder", 49: "File open with write permission", 56: "No such drive", 65: "No disk in drive", 120: "Directory not found"]
if gCPU = #mpc then
set extension to ".dll"
else
set extension to EMPTY
end if
set miscXobj to Misc_X(mnew)
if gCPU = #MAC then
set savedFilesPath to miscXobj(mSystemFolder) & "Preferences:Chaos"
else
set savedFilesPath to miscXobj(mWindowsDirectory) & "Chaos"
end if
set savedPathExist to miscXobj(mFolderExists, savedFilesPath)
if not savedPathExist then
set theResult to miscXobj(mInsureFolder, savedFilesPath & gfileSep)